import store from '../store/index.js'

export function is(per) {
  let permissions = store.state.user.permissions
  if (permissions != undefined) {
    for (let i = 0; i < permissions.length; i++) {
      if (permissions[i].per == per) {
        return true
      }
    }
  }
  return false
}
